public class Leap {
    public static void main(String[] args) {
        int i = 1000;
        int count=0;
        while(i<2000){

            if( i % 400==0 || (i % 4 == 0 && i % 100 != 0)) {

                count++;
                System.out.println(i +"是闰年");
            }
            i++;
        }
        System.out.println("count= "+ count);
    }
}
